
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '人员管理',
    enableValidate: true
})

@Injectable()
export class DetailFormComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'code_4d4b8dfd_a7g8',
        name: "{{code_4d4b8dfd_a7g8}}",
        binding: 'code',
        updateOn: 'blur',
        defaultI18nValue: '编号',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    code: FormControl;

    @NgFormControl({
        id: 'name_fa456651_hh49',
        name: "{{name_fa456651_hh49}}",
        binding: 'name',
        updateOn: 'blur',
        defaultI18nValue: '姓名',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    name: FormControl;

    @NgFormControl({
        id: 'remark_2100067b_8ews',
        name: "{{remark_2100067b_8ews}}",
        binding: 'remark',
        updateOn: 'blur',
        defaultI18nValue: '备注',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    remark: FormControl;

    @NgFormControl({
        id: 'state_dd35ba14_0yi0',
        name: "{{state_dd35ba14_0yi0}}",
        binding: 'state',
        updateOn: 'blur',
        defaultI18nValue: '状态',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    state: FormControl;

    @NgFormControl({
        id: 'organization_456bba21_b33k',
        name: "{{organization_456bba21_b33k}}",
        binding: 'organization',
        updateOn: 'blur',
        defaultI18nValue: '组织',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    organization: FormControl;

    @NgFormControl({
        id: 'gender_ea179b59_hc5y',
        name: "{{gender_ea179b59_hc5y}}",
        binding: 'gender',
        updateOn: 'blur',
        defaultI18nValue: '性别',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            }
        ]
    })
    gender: FormControl;

    @NgFormControl({
        id: 'location_3abaad97_ejc0',
        name: "{{location_3abaad97_ejc0}}",
        binding: 'location',
        updateOn: 'blur',
        defaultI18nValue: '常驻地',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    location: FormControl;

    @NgFormControl({
        id: 'phoneNumber_073241eb_3t1d',
        name: "{{phoneNumber_073241eb_3t1d}}",
        binding: 'phoneNumber',
        updateOn: 'blur',
        defaultI18nValue: '手机号',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    phoneNumber: FormControl;

    @NgFormControl({
        id: 'mailbox_27102526_a7fk',
        name: "{{mailbox_27102526_a7fk}}",
        binding: 'mailbox',
        updateOn: 'blur',
        defaultI18nValue: '邮箱',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    mailbox: FormControl;

    @NgFormControl({
        id: 'countryOrArea_7a0f89ab_msmo',
        name: "{{countryOrArea_7a0f89ab_msmo}}",
        binding: 'countryOrArea',
        updateOn: 'blur',
        defaultI18nValue: '所属国家或地区',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    countryOrArea: FormControl;

}